package com.basic.modules.nykf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.basic.common.utils.PageUtils;
import com.basic.common.utils.ParamsModel;
import com.basic.common.utils.R;
import com.basic.modules.nykf.entity.ConsultationRecordsEntity;
import com.basic.modules.nykf.entity.ConsultationRecordsGjEntity;

import java.util.List;
import java.util.Map;

public interface ConsultationRecordsService extends IService<ConsultationRecordsEntity> {

    /**
     * 获取咨询记录集合
     *
     * @param params
     * @return
     */
    PageUtils getConsultationRecordsList(ParamsModel<ConsultationRecordsEntity> params);

    /**
     * 添加客户咨询记录
     *
     * @param consultationRecordsEntity
     * @return
     */
    R addConsultationRecords(ConsultationRecordsEntity consultationRecordsEntity);

    /**
     * 根据咨询id查询跟进记录
     * @param consultationRecordsEntity
     * @return
     */
    List<ConsultationRecordsGjEntity> getGjListByZxId(ConsultationRecordsEntity consultationRecordsEntity);

    /**
     * 咨询记录看板数据
     * @param map
     * @return
     */
    List<Map<String, Object>> getZxjlKbData(Map<String, Object> map);

    /**
     * 咨询记录看板柱状图数据
     * @return
     */
    List<Map<String, Object>> getZxjlZztData();

    /**
     * 获取日历待跟进记录数
     * @return
     */
    List<Map<String, Object>> getCalendarDgjjls(Map map);
}
